import request from '@/utils/request'

export const merchantPostService = (formModel, formFileModel) => {
  const formData = new FormData();

  for (const key in formModel) {
      formData.append(key, formModel[key]);
  }
  for (const key in formFileModel) {
    formData.append(key, formFileModel[key]);
  }


  return request.post('/user/api/me/merchant', formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}

export const merchantGetBasicService = () => {
  return request.get('/user/api/me/merchant/basic');
}